:root {
    --background-color: #2c3e50;
    --border-color: #7591AD;
    --text-color: #34495e;
    --color1: #EC3E27;
    --color2: #fd79a8;
    --color3: #0984e3;
    --color4: #00b894;
    --color5: #fdcb6e;
    --color6: #e056fd;
    --color7: #F97F51;
    --color8: #BDC581;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif, Arial, 'Microsoft Yahei';
}

.channel {
    position: absolute;
    width: 80%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -300px);
    font-size: 30px;
    font-weight: bold;
    color: #fff;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 10px;
}

.image::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    /* background-color: #EC3E27; */
    /* 让背景色变灰 */
    filter: grayscale(90%);
    transition: 1s;
}

.image:nth-child(1)::before {
    background-image: url(1.jpg);
}

.image:nth-child(2)::before {
    background-image: url(2.jpg);
}

.image:nth-child(3)::before {
    background-image: url(3.jpg);
}

.image:hover::before {
    width: 0;
}